<!DOCTYPE html>

<html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>透视图</title>
    <style type="text/css">
        body {
            perspective: 10cm;
        }
        
        .wrapper {
            width: 500px;
            height: 300px;
            background: #dedede url(fanwei.jpeg) no-repeat center/cover;
            margin: 25px auto;
            transition: transform 500ms linear;
        }
        
        .first:hover {
            /* transform: rotateX(30deg); */
            transform: rotate3d(1, 0, 0, 30deg);
        }
        
        .second:hover {
            /* transform: rotateY(30deg); */
            transform: rotate3d(0, 1, 0, 30deg);
        }
        
        .third:hover {
            /* transform: rotateZ(30deg); */
            transform: rotate3d(0, 0, 1, 30deg);
        }
        
        .fourth:hover {
            transform: rotate(30deg);
        }
    </style>
</head>

<body>

    <div class="wrapper first"></div>

    <div class="wrapper second"></div>

    <div class="wrapper third"></div>

    <div class="wrapper fourth"></div>

</body>

</html>